<?php 
header("Content-type:text/html;charset=utf-8");
function validate()
{	session_start();
	if(!isset($_SESSION['admin']))
	{
		$url="login.php";
		$msg="你没权限";
		redirect($url,$msg);
		exit();
	}
}

 ?>